package com.zmn.oms.services.impl.quotation3;

import com.zmn.oms.model.entity.quotation3.OrderFaultPhenomenon;
import com.zmn.oms.persistence.interfaces.quotation3.OrderFaultPhenomenonDao;
import com.zmn.oms.services.interfaces.quotation3.OrderFaultPhenomenonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author sunlife
 * @date:2021/12/1 6:59 下午
 * description:
 */
@Service
public class OrderFaultPhenomenonServiceImpl implements OrderFaultPhenomenonService {

    @Resource
    OrderFaultPhenomenonDao orderFaultPhenomenonDao;

    @Override
    public void insertList(List<OrderFaultPhenomenon> phenList) {
        orderFaultPhenomenonDao.batchInsert(phenList);
    }

    @Override
    public List<OrderFaultPhenomenon> listByOrderId(Long orderId) {
        return orderFaultPhenomenonDao.listByOrderId(orderId);
    }

    @Override
    public void deleteByOrderId(Long orderId) {
        orderFaultPhenomenonDao.deleteByOrderId(orderId);
    }
}
